﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>创建</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../Layui/css/layui.css" media="all">
</head>
<body>
    <form class="layui-form" action="">
        <div class="layui-form-item" style="margin-top:10px;">
            <label class="layui-form-label">套餐名称</label>
            <div class="layui-input-inline">
                <input type="text" name="ContName" required lay-verify="required" placeholder="请输入套餐名称" autocomplete="off" class="layui-input">
            </div>
            <label class="layui-form-label">备注</label>
            <div class="layui-input-inline">
                <input type="text" name="Remark" required lay-verify="required" placeholder="请输入备注" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">套餐类型</label>
            <div class="layui-input-inline">
                <input type="radio" name="IsClassHour" value="1" title="课时" checked>
                <input type="radio" name="IsClassHour" value="0" title="时长">

            </div>


        </div>

        <div class="layui-form-item">
            <label class="layui-form-label" id="ContType">套餐时长</label>
            <div class="layui-input-inline">
                <input type="text" name="ClassHourNumber" required lay-verify="required" placeholder="请输入套餐时长" autocomplete="off" class="layui-input">
            </div>
            <label class="layui-form-label">价格</label>
            <div class="layui-input-inline">
                <input type="text" name="Price" required lay-verify="required" placeholder="请输入价格" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item"  id="ContType1">
            <label class="layui-form-label">上课频次</label>
            <div class="layui-input-inline">
                <input type="text" name="HourFrequency" required lay-verify="required" placeholder="请输入上课频次" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">最大请假</label>
            <div class="layui-input-inline">
                <input type="text" name="MaxLeave" required lay-verify="required" placeholder="请输入最大请假次数" autocomplete="off" class="layui-input">
            </div>
            <label class="layui-form-label">最大补课</label>
            <div class="layui-input-inline">
                <input type="text" name="MaxMakeUP" required lay-verify="required" placeholder="请输入最大补课次数" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">课程</label>
            <div class="layui-input-inline">
                <input type="radio" name="IsAll" value="0" title="全部" checked>
                <input type="radio" name="IsAll" value="1" title="部分" >
            </div>

        </div>


        <div class="layui-form-item"  id="CousrseList">
            <div class="layui-input-block">

            </div>
        </div>
    </form>
    <script src="../Layui/layui.js"></script>

    <script>
        layui.config({
            base: '../Layui/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use('index');
    </script>
    <script>
        //Demo
        layui.use('form', function () {
            var form = layui.form;

            //监听提交
            form.on('submit(formDemo)', function (data) {
                layer.msg(JSON.stringify(data.field));
                return false;
            });
        });
    </script>
    <script>
        layui.use('laydate', function () {
            var laydate = layui.laydate;

            //执行一个laydate实例
            laydate.render({
                elem: '#BirdDate' //指定元素
            });


        });
    </script>
</body>
</html>